package com.blt.car.home;

import android.widget.ImageView;

import com.blt.car.R;
import com.blt.car.base.BaseActivity;
import com.blt.car.base.ViewHolder;
import com.bumptech.glide.Glide;

import blt.app_core.utils.UriProdiver;

/**
 * Created by xgp on 2017/7/7.
 */

public class PictureLookActivity extends BaseActivity {
    public static final String IMAGE_URI = "image_uri";
    private String uri;

    @Override
    protected int getLayoutId() {
        return R.layout.activit_pickture_look;
    }

    @Override
    protected void initData() {
        super.initData();
        if (getIntent().getExtras() != null) {
            uri = getIntent().getExtras().getString(IMAGE_URI);
        }
    }


    @Override
    protected void initView(ViewHolder holder) {
        ImageView picture = holder.get(R.id.picture_cover);
        Glide.with(this).load(UriProdiver.IMAGE_BASE_URL + uri).into(picture);
    }


}
